const dic = {
  materialCategory: [
    { label: 'xx', value: '1' },
    { label: 'xx2', value: '2' },
    { label: 'xxx3', value: '3' },
    { label: 'xxx4', value: '4' }
  ],
  status_type: [
    { label: '有效', value: '0' },
    { label: '无效', value: '1' }
  ]
}

export const option = {
  border: true,
  stripe: true,
  addBtn: false,
  editBtn: false,
  viewBtn: false,
  printBtn: false,
  simplePage: true,
  searchBtnText: '搜索',
  emptyBtnText: '清空',
  dialogType: 'drawer',
  align: 'center',
  searchMenuSpan: 6, //搜索按钮是否单独成行
  selection: true,
  tip: false,
  reserveSelection:true,
  index: true,
  indexLabel: '序号',
  column: [
    {
      label: '模版编号',
      prop: 'templateCode'
    },
    {
      label: '模版名称',
      prop: 'templateName',
      searchLabelWidth: 110, //搜索label宽度
      search: true, //启动搜索
      searchSpan: 6 // 搜索栏 布局
    },
    {
      label: '物料分类',
      prop: 'materialClassify',
      type: 'select',
      props: {
        label: 'label',
        value: 'value'
      },
      dicData: dic.materialCategory,
      searchslot: true,
      searchLabelWidth: 110, //搜索label宽度
      search: true, //启动搜索
      searchSpan: 6 // 搜索栏 布局
    },
    {
      label: '状态',
      prop: 'status',
      type: 'select',
      dicData: dic.status_type,
      props: {
        label: 'label',
        value: 'value'
      },
      slot: true,
      searchLabelWidth: 110, //搜索label宽度
      search: true, //启动搜索
      searchSpan: 6 // 搜索栏 布局
    }
  ]
}

export const page = {
  currentPage: 1,
  total: 40,
  layout: 'total, sizes, prev, pager, next, jumper',
  pageSizes: [10, 20, 50, 100],
  pageSize: 10
}
